package cn.hloger.spider.utils;

import java.util.concurrent.atomic.AtomicInteger;

;

/**
 * 计算器的实现
 *
 * @author huanglong
 * @Description TODO
 * @data 2022/9/13
 */
public class IncreMentUtils {
    public static AtomicInteger count = new AtomicInteger(0);

    public static int next() {
        int i = count.incrementAndGet();
        return i;
    }

    public static void clear() {
        count.set(0);
    }
}
